package com.bruce.asurada.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户实体类
 * 
 * @author Bruce
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 唯一用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 唯一手机号码
     */
    private String mobile;

    /**
     * 唯一电子邮箱
     */
    private String email;

}